package com.example.firstndk;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class MainActivity extends Activity {
	
	TextView tv1;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		tv1 = (TextView) findViewById(R.id.plusvalue);
		
		tv1.setText(getTxtContent());
	}

	public native int plus (int x, int y);
	
	public native String getTxtContent();
	
	static{
		System.loadLibrary("FirstNdk");
	}

}
